Fix compilation errors due to insufficient compiler safety (bug#63288)
authorPip Cet <pipcet@protonmail.com>
Mon, 17 Feb 2025 15:21:16 +0000 (15:21 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 1 Apr 2025 11:21:10 +0000 (14:21 +0300)
commit6cac92928a99a2cf33aeeeddf295cf981750391c
treea334f669262e2cbd9e5b99c355a582b0f9fc0684
parent43c9eb3df6050f19211e219c7cb03da7a6d9d6dd
Fix compilation errors due to insufficient compiler safety (bug#63288)

The default safety level is 1.  Restoring the default safety level to
1 after it was temporarily 0 should reset byte-compile-delete-errors
to nil, its default level.  Failing to do that resulted in
miscompilation of code in highly-parallel builds.

* lisp/emacs-lisp/cl-macs.el (cl--do-proclaim): Change
'byte-compile-delete-errors' to become t only at 'safety' level 0, not
levels 1 or 2.

(cherry picked from commit 53a5dada413662389a17c551a00d215e51f5049f)
lisp/emacs-lisp/cl-macs.el